/**
 * index.js
 */
function detailShow(){
    BGimgshow();
    $(".tk_detail").removeClass("dis_none").addClass("dis_block");
    $("html,body").addClass("noscoll");
    //埋点——查看详情
    tar.hitTag('detailClick');
}

function detailClose(){
    closeDetailWindow();
    window.location.href = "desk.html";
}

function closeDetailWindow() {
    closeBGimg();
    $(".tk_detail").removeClass("dis_block").addClass("dis_none");
    $("html,body").removeClass("noscoll");
}

$('.mask_layer.tk_detail').click(function(e) {
    var target = $(e.target);
    if (!target.hasClass('img_tk')) {
        closeDetailWindow();
    }
});

function rulesShow(){
    BGimgshow();
    $(".tk_rules").removeClass("dis_none").addClass("dis_block");
    $("html,body").addClass("noscoll");
    //埋点——规则
    tar.hitTag('rulesClick');
}

function rulesClose(){
    closeBGimg();
    $(".tk_rules").removeClass("dis_block").addClass("dis_none");
    $("html,body").removeClass("noscoll");
}

function jumpToMine(){
    //埋点——我的
    tar.hitTag('mineClick');
    window.location.href = 'mine.html';
}
